package com.shop.service;

import com.shop.entity.item.Item;
import com.shop.entity.item.ItemVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient("goods-provider")
public interface ItemServiceRest {
    @RequestMapping(value = "queryAll",method = RequestMethod.POST)
    List<Item> queryAll(@RequestBody Item item);
    @RequestMapping(value = "queryAllshow",method = RequestMethod.POST)
    List<ItemVo> queryAllshow(@RequestBody ItemVo itemVo);
}
